package com.example.demo.leeCode;

public class GuessNo {
    public static void main(String[] args) {

    }

    public int game(int[] guess,int [] answer){
        int sucess = 0;
        for(int i=0; i<3; i++){
            if(guess[i] == answer[i]){
                sucess ++;
            }
        }
        return sucess;
    }
}
